package com.ecoolex.discount.sales.job.scheduler;

import com.ecoolex.discount.sales.core.service.YWService;
import com.ecoolex.framework.scheduler.Job;
import com.ecoolex.framework.scheduler.JobComponent;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 由我付同步任务
 *
 * @author <Mingyuan Wu> my.wu@outlook.com
 */
@JobComponent
public class YouWorldSyncJob {
    @Autowired
    YWService ywService;

    @Job(name = "discount.sales.YouWorldSyncJob.syncBrandData", describe = "由我付同步品牌数据任务")
    public void syncBrandData(){
        ywService.syncBrandData();
    }

    @Job(name = "discount.sales.YouWorldSyncJob.syncStoreData", describe = "由我付同步商户数据任务")
    public void syncStoreData(){
        ywService.syncStoreData();
    }

    @Job(name = "discount.sales.YouWorldSyncJob.syncGiftCardListData", describe = "由我付同步礼品卡数据任务")
    public void syncGiftCardListData(){
        ywService.syncGiftCardListData();
    }

    @Job(name = "discount.sales.YouWorldSyncJob.processAsync", describe = "处理异步发卡")
    public void processAsync(){
        ywService.processAsync();
    }
}
